//
//  PaymentView.m
//  huashiedu
//
//  Created by oceans on 2018/9/11.
//  Copyright © 2018年 hema. All rights reserved.
//

#import "PaymentView.h"

@interface PaymentView ()
@end

@implementation PaymentView

- (IBAction)confirmPayment:(UIButton *)sender {
    if (_wxcheck.hidden && _alicheck.hidden) {
        return;
    }
    [_delegate confirmPayment:@{@"pay": [NSNumber numberWithBool:_wxcheck.hidden]}];
}

- (IBAction)wechatPressed:(UIButton *)sender {
    self.alicheck.hidden = YES;
    self.wxcheck.hidden = NO;
}

- (IBAction)alipayPressed:(UIButton *)sender {
    self.alicheck.hidden = NO;
    self.wxcheck.hidden = YES;
}

- (IBAction)close:(UIButton *)sender {
    [_delegate closePaymentView];
}
@end
